﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[XmlInclude(typeof(GlobalUserTask))]
[XmlInclude(typeof(GlobalScriptTask))]
[XmlInclude(typeof(GlobalManualTask))]
[XmlInclude(typeof(GlobalBusinessRuleTask))]
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tGlobalTask")]
[XmlRoot("globalTask", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class GlobalTask : CallableElement
{
    /// <remarks/>
    [XmlElement("performer", typeof(Performer))]
    [XmlElement("resourceRole", typeof(ResourceRole))]
    public ResourceRole[] Items { get; set; } = default!;
}
